package br.mikhas.util.jdbc;

import java.sql.ResultSet;

/**
 * Defines a contract to extract data from a Jdbc ResultSet.
 * 
 * @author n068815 - Mikhail Domanoski
 * 
 */
public interface ResultSetExtrator<T> {

	/**
	 * Must process the entire result set extracting data from it
	 * 
	 * @param rs The result set to be processed
	 * @return an arbitrary object depending of the extractor implementation
	 * @throws JdbcException in case of any jdbc related error
	 */
	T extractData(ResultSet rs) throws JdbcException;
}
